﻿using BCCommon;
using BCDto.OA.BusinessFlowModel.BusinessFlowModel;
using System;
using System.Collections.Generic;
using System.Text;

namespace BCService.OA.BusinessFlowModel.BusinessFlowModel
{
    /// <summary>
    /// OA系统业务流模型
    /// </summary>
	public interface IBusinessFlowModelService
    {
        #region  成员方法
        /// <summary>
        /// 是否存在此记录
        /// </summary>
        /// <param name="businessFlowModelId">OA系统业务流模型Id</param>
        bool Exists(long businessFlowModelId);
        /// <summary>
        /// 是否存在此记录
        /// </summary>
        /// <param name="businessFlowModelCode">OA系统业务流模型编码</param>
        bool Exists(string businessFlowModelCode);
        /// <summary>
        /// 添加OA系统业务流模型
        /// </summary>
        /// <param name="requestDto">OA系统业务流模型信息</param>
        BusinessFlowModelDto Add(BusinessFlowModelRequestDto requestDto);
        /// <summary>
        /// 更新OA系统业务流模型
        /// </summary>
        /// <param name="putDto">OA系统业务流模型信息</param>
        BusinessFlowModelDto Update(BusinessFlowModelPutDto putDto);
        /// <summary>
        /// 删除OA系统业务流模型
        /// </summary>
        /// <param name="businessFlowModelId">OA系统业务流模型Id</param>
        bool Delete(long businessFlowModelId);
        /// <summary>
        /// 获取OA系统业务流模型
        /// </summary>
        /// <param name="businessFlowModelId">OA系统业务流模型Id</param>
        BusinessFlowModelDto GetEntity(long businessFlowModelId);
        /// <summary>
        /// 获取OA系统业务流模型
        /// </summary>
        /// <param name="businessFlowModelCode">OA系统业务流模型编码</param>
        BusinessFlowModelDto GetEntity(string businessFlowModelCode);
        /// <summary>
        /// 获取OA系统业务流模型列表
        /// </summary>
        /// <param name="companyId">公司Id</param>
        IEnumerable<BusinessFlowModelDto> GetList(int companyId);
        /// <summary>
        /// 获取OA系统业务流模型分页列表
        /// </summary>
        /// <param name="companyId">公司Id</param>
        /// <param name="businessFlowModelName">OA系统业务流模型名称</param>
        /// <param name="start">开始时间</param>
        /// <param name="end">结束时间</param>
        /// <param name="pageIndex">当前页码</param>
        /// <param name="pageSize">OA系统业务流模型每页数据条数</param>
        PageableList<BusinessFlowModelDto> Query(int companyId, string businessFlowModelName, DateTime? start, DateTime? end, int pageIndex, int pageSize);
        #endregion  成员方法
    }
}
